package br.com.jgmweb.dao;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

import br.com.jgmweb.bean.Chamado;

public class ConnFactory {
	
	public Session getSession(){
		
		AnnotationConfiguration cfg = new AnnotationConfiguration();
		cfg.configure();
		SessionFactory factory = cfg.buildSessionFactory();
		
	    
		return factory.openSession();
	}
	

}
